package com.atguigu.test.jvm;

import java.util.ArrayList;

public class testJvm {
    public static void main(String[] args) {
        Object o = new Object();
        System.out.println(o.getClass().getClassLoader());//null

        testJvm testJvm = new testJvm();
        System.out.println(testJvm.getClass().getClassLoader().getParent().getParent());//null
        System.out.println(testJvm.getClass().getClassLoader().getParent());//ExtClassLoader
        System.out.println(testJvm.getClass().getClassLoader());//AppClassLoader

        ArrayList<Object> list = new ArrayList<>();
        list.add("abc");
        System.out.println("11111111111111111");
        System.out.println("22222222");
        System.out.println("3333333333");
         System.out.println("8888 wl");
         System.out.println("7777 local");
          System.out.println("7777 lh");
    }
}
